import router from '@/router';
import nprogress from 'nprogress';
import 'nprogress/nprogress.css';

nprogress.configure({ showSpinner: false });

router.beforeEach((to, from, next) => {
  nprogress.start();
  next();
});
router.afterEach(() => {
  nprogress.done();
});
